//
//  AppleHealthyViewController.m
//  project
//
//  Created by 黄建华 on 2018/6/25.
//  Copyright © 2018年 黄建华. All rights reserved.
//

#import "AppleHealthyViewController.h"

@interface AppleHealthyViewController ()

@end

@implementation AppleHealthyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorFromHex:0xf1f0f4];
    UIView *StateView = [[UIView alloc] init];
    StateView.frame           = CGRectMake(0, 0, kSCREEN_WIDTH, 20);
    StateView.backgroundColor = BBIGSTATECOLOR;
    [self.view addSubview:StateView];
    
    UIView *naView = [[UIView alloc] init];
    naView.frame           = CGRectMake(0, 20+FitSimpleIpx(0, 20), kSCREEN_WIDTH, 44);
    naView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:naView];
    
    UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 20+FitSimpleIpx(0, 20), screenWidth, 44)];
    lable.textColor     = [UIColor blackColor];
    lable.font          = SNFONT(17);
    lable.textAlignment = NSTextAlignmentCenter;
    lable.text          = HHH_Text(@"说明2");
    [self.view addSubview:lable];
    
    UIButton *leftButton = [[UIButton alloc] init];
    leftButton.frame = CGRectMake(5, 20+FitSimpleIpx(0, 20), 44, 44);
    [leftButton setImageNormal:@"进入"];
    [leftButton addTarget:self action:@selector(backView) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:leftButton];
    
    SNShadowView *shadowLine = [[SNShadowView alloc] init];
    shadowLine.frame = SNFRAME(0,20+FitSimpleIpx(0, 20) + 44, HHHWIDTH, 0);
    [shadowLine showWithType:1];
    [self.view addSubview:shadowLine];
    
    UIImageView *imageview = [[UIImageView alloc] init];
    imageview.frame = SNFRAME(40, shadowLine.bottom + 10, HHHWIDTH - 80,HHHHEIGHT*0.60 - 70);
    imageview.image = [UIImage image:@"苹果健康"];
    [self.view addSubview:imageview];
    
    UILabel*infoLabel1 = [[UILabel alloc] init];
    infoLabel1.textAlignment = NSTextAlignmentLeft;
    infoLabel1.font = SNSFONT(15);
    infoLabel1.textColor = SNCOLORBLACK;
    infoLabel1.frame = SNFRAME(20, imageview.bottom + 60,imageview.width, 60);
    infoLabel1.text = SN_Text(@"苹果健康说明1");
    infoLabel1.numberOfLines = 3;
    [self.view addSubview:infoLabel1];
    
    UILabel*infoLabel2 = [[UILabel alloc] init];
    infoLabel2.textAlignment = NSTextAlignmentLeft;
    infoLabel2.font = SNSFONT(15);
    infoLabel2.textColor = SNCOLORBLACK;
    infoLabel2.frame = SNFRAME(20, infoLabel1.bottom ,imageview.width, 60);
    infoLabel2.text = SN_Text(@"苹果健康说明2");
    infoLabel2.numberOfLines = 3;
    [self.view addSubview:infoLabel2];
    
    UILabel*infoLabel3 = [[UILabel alloc] init];
    infoLabel3.textAlignment = NSTextAlignmentLeft;
    infoLabel3.font = SNSFONT(15);
    infoLabel3.textColor = SNCOLORBLACK;
    infoLabel3.frame = SNFRAME(20, infoLabel2.bottom ,imageview.width, 60);
    infoLabel3.text = SN_Text(@"苹果健康说明3");
    infoLabel3.numberOfLines = 3;
    [self.view addSubview:infoLabel3];
    
    [self performSelector:@selector(delayAppleConnect) withObject:nil afterDelay:2.0];
}

- (void)delayAppleConnect
{

}

- (void)backView
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
